package GameStates 
{
	
	import flash.display.MovieClip;
	import flash.events.Event;
	import src.Player_Cruiser;
	/**
	 * ...
	 * @author Ivan L. Neves
	 */
	public class Level_02 extends MovieClip
	{
		private	var cruiser :Player_Cruiser;
		
		public function Level_02() 
		{
			addEventListener(Event.ADDED_TO_STAGE, addStage, false, 0, true);
		}
		
		private function addStage(e:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, addStage);
			
			iniciarJogo();
		}
		
		private function iniciarJogo():void 
		{
			cruiser = new Player_Cruiser();
			cruiser.x = stage.stageWidth / 2;
			cruiser.y = stage.stageHeight / 2;
			addChildAt(cruiser, 0);
			
			trace(cruiser)
		}
		
		function Update():void
		{
			cruiser.Update();
		}
		
	}

}